package com.databias.j15;

import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Toolkit;



public class GImage implements GObject {

	Image myImage;
	
	public GImage (Image img)
	{
		myImage=img;
	
	}
	
	public void draw(int x, int y, Graphics2D gs) {
		
		boolean wasDrawn = false;
		
		//System.out.println(myImage.getHeight(null));
		

		wasDrawn =gs.drawImage(myImage, x, y, null); 
//	     if(!gs.drawImage(myImage, 0, 0, null)) {
//	         gs.drawString("Loading Picture. Please hang on", 10, 0);
//	       }
	    
//System.out.println("Was drawn?"+ wasDrawn);
	}

}
